home *** CD-ROM | disk | FTP | other *** search
/ BBS Toolkit / BBS Toolkit.iso / pc_board / gift4b12.zip / PCBTEST.BTM < prev    next >
Text File  |  1992-01-17  |  1KB  |  49 lines

  1. @echo off
  2. if exist pcbpass.txt del pcbpass.txt
  3. if exist pcbfail.txt del pcbfail.txt
  4. if %@ext[%1]==gif goto gif
  5. if %@ext[%1]==zip goto zip
  6. goto crc
  7.  
  8. :gif
  9. if %2 == test goto gift
  10. giftest %1 /C:GIFTEST.CNF /F:%3 > PCBPASS.TXT
  11. if errorlevel == 25 goto badgif
  12. if errorlevel == 20 goto badgif
  13. if errorlevel == 10 goto end
  14. if errorlevel == 1 goto badgif
  15. goto end
  16.  
  17. :gift
  18. echo Testing GIF file...
  19. giftest %1 > PCBPASS.TXT
  20. if errorlevel == 25 goto badgif
  21. if errorlevel == 20 goto badgif
  22. if errorlevel == 10 goto end
  23. if errorlevel == 1 goto badgif
  24. goto end
  25.  
  26. :badgif
  27. beep
  28. move PCBPASS.TXT PCBFAIL.TXT
  29. goto end
  30.  
  31. :zip
  32. ptest %1 ptest.cfg
  33. if %2 == test goto end
  34. if exist pcbfail.txt goto end
  35.  
  36. :crc
  37. if exist pcbpass.txt del pcbpass.txt
  38. rem proecho 1 ~Adding %@name[%1] to CRC database...
  39. zdcsfc %1 %2 %3
  40. goto end
  41.  
  42. :end
  43.  
  44. :asta
  45. if exist PCBPASS.TXT type PCBPASS.TXT >> f:\pcb\PCBPASS.LOG
  46. if exist PCBFAIL.TXT type PCBFAIL.TXT >> f:\pcb\PCBFAIL.LOG
  47. if exist PCBFAIL.TXT move %1 h:\hold /q
  48. if exist %3 type %3 >> f:\pcb\desc
  49.